package com.example.demo.sys.mapper;

import com.example.demo.sys.entity.Forum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口 chrimer
 * </p>
 *
 * @author chrimer
 * @since 2020-06-28
 */
public interface ForumMapper extends BaseMapper<Forum> {
    @Update("UPDATE forum SET answer=#{answer} WHERE id=#{id}")
    void UpdateAnswer(int answer,String id);
}
